package cn.meizhu.user.controller;


import cn.meizhu.user.service.IWxUserService;
import cn.meizhu.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/wxUser")
public class WxUserController {

    @Autowired
    private IWxUserService wxUserService;

    @PostMapping("/index")
    public AjaxResult index(@RequestBody Map<String, String> map){
        return wxUserService.index(map);
    }

    //绑定用户
    @PostMapping("/binder")
    public AjaxResult binder(@RequestBody Map<String,String> map){
        return wxUserService.binder(map);
    }

}
